package cn.jinjie.day05.test1;

public class Test01 {
    public static void main(String[] args) {
        System.out.println(Math.abs(-5));//求绝对值
        System.out.println(Math.ceil(6.3));//向上取整
        System.out.println(Math.floor(6.9));//向下取整
        System.out.println(Math.round(4.4));
        System.out.println(Math.round(4.5));
        System.out.println(Math.max(11, 16));
        System.out.println(Math.min(11, 16));
        System.out.println(Math.pow(11, 2));
        int ra = (int) (Math.random() * 2 + 10);
        System.out.println(ra);
    }
}
